<div class='form'>
  <% form_for @background,:html=>{:multipart=>true} do |f| %>
    <%= f.error_messages %>

    <p>
      <label for="background_name">名称</label>
      <%= f.text_field :name %>
    </p>

    <p>
      <label for="background_image─url">图片</label>
      <%= file_column_field "background", "image_url" %>
    </p>
    <p>
      <%= f.submit button_name,:class=>'submit' %>
    </p>
  <% end %>
</div>